package com.yj.limit;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestLimit {


    String key() default ""; // limit key

    int limit() default 10; // limit count

    int period() default 60; // limit period in seconds

}
